15. Quiz: Calendar Provider

Calendar App

For this final quiz, let’s assume you need to interact with one of the Google maintained Content Providers, the Calendar Provider.
Below are 6 statements. Which would you use to change the color of the user's calendars to be red? Assume that this “values” variable has the information that describes new or changed data.

Hint: if you’re wondering what the difference is in URIs, check out these links to the documentation for DroidTermsExampleContract and CalendarContract.

Contacting a Content Provider Three

Which statement would you use to turn a user’s calendars colors red?

SOLUTION: resolver.update(CalendarContract.Calendars.CONTENT_URI, values, null, null);